package ui.nav;
import feffects.easing.Quad;
import tools.ASprite;

/**
 * ...
 * @author PRASS
 */

class Logo extends ASprite
{

	public function new(jq:JQuery) 
	{
		super(jq);
		
		dom.mouseover( function(e) { _onOver(e); } );
		dom.mouseout( function(e) { _onOut(e); } );
		
		setAlpha(1);
	}
	
	private function _onOver(e):Void 
	{
		tween(1, setAlpha, .75, 400, Quad.easeInOut);
	}
	
	private function _onOut(e):Void 
	{
		tween(getAlpha(), setAlpha, 1, 300, Quad.easeInOut);
	}
	
}